<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: luanzg <782114271@qq.com>
// +----------------------------------------------------------------------
use think\facade\Route;
use app\common\middleware\Admin;

Route::group(function () {
    //节目库管理栏目下路由 
    Route::get('pgmmanage/pgmlib', 'pgmlibList');
    Route::put('pgmmanage/pgmlib', 'pgmlibEdit'); 
    Route::post('pgmmanage/pgmlib', 'pgmlibAdd'); 
    Route::delete('pgmmanage/pgmlib', 'pgmlibDel');
    // 节目播放信息
    Route::get('pgmmanage/pgmplay', 'pgmplayList');
    Route::post('pgmmanage/pgmplay', 'pgmplayAdd');
    Route::put('pgmmanage/pgmplay', 'pgmplayEdit');
    Route::delete('pgmmanage/pgmplay', 'pgmplayDel');
    
    // 节目频道播放计划路由
    Route::get('pgmmanage/pgmplayplan', 'pgmPlayPlan');
    Route::post('pgmmanage/pgmplayplan', 'pgmPlayPlanAdd');
    Route::put('pgmmanage/pgmplayplan', 'pgmPlayPlanEdit');
    Route::delete('pgmmanage/pgmplayplan', 'pgmPlayPlanDel');
    
    // 节目播放安排
    Route::get('pgmmanage/pgmplaydetails', 'pgmPlayDetailList');
    Route::post('pgmmanage/pgmplaydetails', 'pgmPlayDetailAdd');
    Route::put('pgmmanage/pgmplaydetails', 'pgmPlayDetailEdit');

    Route::get('pgmmanage/pgmlibdetail', 'pgmLibDetailList');

    // 广告库管理
    Route::get('pgmmanage/advlib', 'advlibList');
    Route::post('pgmmanage/advlib', 'advlibAdd');
    Route::put('pgmmanage/advlib', 'advlibEdit');
    Route::delete('pgmmanage/advlib', 'advlibDel');

    // 节目组管理
    Route::get('pgmmanage/channelgroup', 'channelgroup');
    Route::post('pgmmanage/channelgroup', 'channelgroupAdd');
    Route::put('pgmmanage/channelgroup', 'channelgroupEdit');
    Route::delete('pgmmanage/channelgroup', 'channelgroupDel');
    Route::get('pgmmanage/channelgrp', 'channelgrp');

    // 节目组素材管理
    Route::get('pgmmanage/pgmgroup', 'pgmgroupList');
    Route::post('pgmmanage/pgmgroup', 'pgmgroupAdd');
    Route::put('pgmmanage/pgmgroup', 'pgmgroupEdit');
    Route::delete('pgmmanage/pgmgroup', 'pgmgroupDel');
})->prefix('PgmManage/')->allowCrossDomain(headers())->middleware(Admin::class);
